package com.ruoyi.project.basic.districtclass.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.basic.districtclass.mapper.JcDistrictclassMapper;
import com.ruoyi.project.basic.districtclass.domain.JcDistrictclass;
import com.ruoyi.project.basic.districtclass.service.IJcDistrictclassService;

/**
 * 地区分类Service业务层处理
 * 
 * @author frank
 * @date 2024-08-24
 */
@Service
public class JcDistrictclassServiceImpl implements IJcDistrictclassService 
{
    @Autowired
    private JcDistrictclassMapper jcDistrictclassMapper;

    /**
     * 查询地区分类
     * 
     * @param jcDistrictclassoid 地区分类主键
     * @return 地区分类
     */
    @Override
    public JcDistrictclass selectJcDistrictclassByJcDistrictclassoid(String jcDistrictclassoid)
    {
        return jcDistrictclassMapper.selectJcDistrictclassByJcDistrictclassoid(jcDistrictclassoid);
    }

    /**
     * 查询地区分类列表
     * 
     * @param jcDistrictclass 地区分类
     * @return 地区分类
     */
    @Override
    public List<JcDistrictclass> selectJcDistrictclassList(JcDistrictclass jcDistrictclass)
    {
        return jcDistrictclassMapper.selectJcDistrictclassList(jcDistrictclass);
    }

    /**
     * 新增地区分类
     * 
     * @param jcDistrictclass 地区分类
     * @return 结果
     */
    @Override
    public int insertJcDistrictclass(JcDistrictclass jcDistrictclass)
    {
        return jcDistrictclassMapper.insertJcDistrictclass(jcDistrictclass);
    }

    /**
     * 修改地区分类
     * 
     * @param jcDistrictclass 地区分类
     * @return 结果
     */
    @Override
    public int updateJcDistrictclass(JcDistrictclass jcDistrictclass)
    {
        return jcDistrictclassMapper.updateJcDistrictclass(jcDistrictclass);
    }

    /**
     * 批量删除地区分类
     * 
     * @param jcDistrictclassoids 需要删除的地区分类主键
     * @return 结果
     */
    @Override
    public int deleteJcDistrictclassByJcDistrictclassoids(String[] jcDistrictclassoids)
    {
        return jcDistrictclassMapper.deleteJcDistrictclassByJcDistrictclassoids(jcDistrictclassoids);
    }

    /**
     * 删除地区分类信息
     * 
     * @param jcDistrictclassoid 地区分类主键
     * @return 结果
     */
    @Override
    public int deleteJcDistrictclassByJcDistrictclassoid(String jcDistrictclassoid)
    {
        return jcDistrictclassMapper.deleteJcDistrictclassByJcDistrictclassoid(jcDistrictclassoid);
    }
}
